package com.nl.controller.web.mapper;

import com.nl.controller.web.bean.BlackUser;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface BlackUserMapper {
    /**
     * 分页查询黑名单
     * @param cityId
     * @return
     */
    List<BlackUser> getDataList(@Param("cityId")String cityId, @Param("phoneNumber")String phoneNumber,@Param("countyId")String countyId,
    		@Param("mgrId")String mgrId,@Param("blackLevel")String blackLevel,@Param("mgrName")String mgrName);

    /**
     * 添加
     * @param blackUser
     * @return
     */
    int addBlackUser(BlackUser blackUser);

    /**
     * 删除
     * @param phoneNumber
     * @return
     */
    int deleteUser(@Param("phoneNumber")String phoneNumber,@Param("mgrId")String mgrId);

    /**
     * 检测账号是否存在
     * @param phoneNumber
     * @return
     */
    int countSame(String phoneNumber);
}
